package com.boot.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @description:报表vo
 * @author: HuangX
 * @date: 2021/7/14
 */
@TableName("report")
@Data
@Accessors(chain = false)
public class Report {

    @ExcelIgnore
    @TableId(type= IdType.ASSIGN_ID)
    private Long id;

    @ExcelProperty("客户名称")
    private String custName;

    @DateTimeFormat("yyyy年MM月dd日")
    @ExcelProperty("开户时间")
    private Date openDate;

    @NumberFormat("#,###.00")
    @ExcelProperty("当年有效结算金额（离在岸）")
    private BigDecimal amount;

    @ExcelProperty("存款人类别")
    private String type;

}
